package com.guoxin.chapter2.innnertest1;

import com.guoxin.chapter2.innnertest1.OutClass.InnerClass;

/**
 * @author guoxin
 * @date 2019年8月20日
 */
public class Run {

	public static void main(String[] args) {
		InnerClass innerClass = new InnerClass();
		Thread a = new Thread(new Runnable() {
			@Override
			public void run() {
				innerClass.method1();
			}
		}, "A");

		Thread b = new Thread(new Runnable() {
			@Override
			public void run() {
				innerClass.method2();
			}
		}, "B");

		a.start();
		b.start();
	}
}
